package cn.edu.lingnan.service.impl;

import cn.edu.lingnan.dao.BanjiDao;
import cn.edu.lingnan.entity.Banji;
import cn.edu.lingnan.service.BanjiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: chen_man_cheng
 * @Description: //TODO
 * @Date: Create in 17:37 2020/6/7
 */
@Service
public class BanjiServiceImpl implements BanjiService {

    @Autowired
    private BanjiDao banjiDao;

    @Override
    public boolean insert(Banji banji) {
        return banjiDao.insert(banji);
    }

    @Override
    public List<Banji> queryAll() {
        return banjiDao.queryAll();
    }

    @Override
    public Banji queryById(Integer id) {
        return banjiDao.queryById(id);
    }
}
